package com.lc.email.config;

import com.lc.email.EmailUtil;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@EnableConfigurationProperties
public class EmailConfig {

    @Autowired
    private EmailProperties emailProperties;

    @Bean
    public EmailUtil mailSender() {
        //uxjmyurhlrjebfbc
        EmailUtil mailSender = new EmailUtil();
        return mailSender;
    }
}
